﻿using System;
using System.Xml.Linq;
using Xunit;
using Xunit.Should;

namespace Adjunct.Framework.Nuspec
{
	public class NuspecManifestSpec
	{
		[Fact]
		public void RemoveNamespaceTest()
		{
			const string xml = @"<?xml version='1.0' encoding='utf-8'?>
<package xmlns='http://strip.me/'>
	<metadata>
		<id>Adjunct.Build</id>
		<authors />
		<description />
		<version />
	</metadata>
</package>
";
			XElement element = XElement.Parse(xml);
			NuspecManifest manifest = NuspecManifest.Load(element);
			manifest.ShouldNotBeNull();
		}

		[Fact]
		public void ToXElementTest()
		{
			//throw new NotImplementedException();
		}

		[Fact]
		public void XmlSerializerTest()
		{
			//throw new NotImplementedException();
		}
	}
}